class PropertyGroup < ActiveRecord::Base
  set_table_name :product_property_groups
  
  belongs_to :viewable, :polymorphic => true, :touch => true

  has_many :properties, :dependent => :destroy, :order => :position

  accepts_nested_attributes_for :properties, :allow_destroy => true
end
